<?php
header('Content-Type: text/html; charset=utf-8');
require_once("src/facebook.php");
$config = array();
$config['appId'] = '787319404xxxx';
$config['secret'] = '532efdf140d0aff53ecxxxxxx';
$config['fileUpload'] = false; // optional
$facebook = new Facebook($config);
//print_r($facebook);
// 亂碼的解決辦法,另存成utf-8即可
$post_id = $facebook->api('/me/feed', 'post', array('message'=>'大家好'));